﻿
    using System;
    using System.IO;
    using System.Runtime.CompilerServices;
    namespace WCYCReader.Main.Core
{
    public class DownloadStringCompletedEventArgs : EventArgs
    {
        public DownloadStringCompletedEventArgs(Exception ex)
        {
            this.Error = ex;
        }

        public DownloadStringCompletedEventArgs(Stream stream)
        {
            this.GZipStream = stream;
        }

        public DownloadStringCompletedEventArgs(string result)
        {
            this.Result = result;
        }

        public Exception Error { get; private set; }

        public Stream GZipStream { get; private set; }

        public string Result { get; private set; }
    }
}

